home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC]
/
NeXTSTEP 3.3 Dev Intel.iso
/
NextDeveloper
/
Headers
/
ansi
/
hppa
/
stdarg.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-20
|
798b
|
33 lines
#ifndef _ANSI_HPPA_STDARG_H_
#define _ANSI_HPPA_STDARG_H_
#define _DEFINE_VA_LIST
#include <ansi/hppa/stdtypes.h>
/* Indicate that this program uses <stdarg.h>. */
#define __STDARG__
#define __stdarg_rounded_size(TYPE) \
((sizeof (TYPE) + sizeof (int) - 1) & ~(sizeof(int)-1))
/* BSD compatibility: if `#include <varargs.h>' was encountered, don't
* redefine the macros. */
#ifndef va_start
#define va_start(list,parmN) \
(void)((list) = ((char *)__builtin_saveregs()))
#endif va_start
#ifndef va_end
#define va_end(list) \
(void)((list) = (char *)0)
#endif va_end
#ifndef va_arg
#define va_arg(list, type) \
(*(type *)((list) = (va_list)((unsigned)((list) -__stdarg_rounded_size(type)) & ~(__stdarg_rounded_size(type)-1))))
#endif va_arg
#endif /* _ANSI_HPPA_STDARG_H_ */